package com.sbr.seb.wicket.page;

import java.util.ArrayList;
import java.util.List;

import org.apache.wicket.PageParameters;
import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.DefaultDataTable;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;

/**
 * Homepage
 */
public class SpecificationPage extends BasePage {

	private static final long serialVersionUID = 1L;

    /**
	 * Constructor that is invoked when page is invoked without a session.
	 * 
	 * @param parameters
	 *            Page parameters
	 */
    public SpecificationPage() {
    	super();
    	List<IColumn<?>> columns = new ArrayList<IColumn<?>>();

		columns.add(new PropertyColumn(new Model<String>("ID"), "id")
		{
			@Override
			public String getCssClass()	{
				return "numeric";
			}
		});

		columns.add(new PropertyColumn(new Model<String>("Name"), "name"));


		add(new DefaultDataTable("datatable", columns, new SpecificationProvider(), 8));
	
    	
    }
}
